"""tenpro URL Configuration

The `urlpatterns` list routes URLs to views.py. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views.py
    1. Add an import:  from my_app import views.py
    2. Add a URL to urlpatterns:  path('', views.py.home, name='home')
Class-based views.py
    1. Add an import:  from other_app.views.py import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.urls import path

from apps.ten_events import views

urlpatterns = [
	# 活动列表
	path('gatherings/', views.Activity.as_view()),
	# 活动详情
	path('gatherings/<int:g_id>/', views.Details.as_view()),
	# 报名活动
	path('gatherings/<int:g_id>/join/', views.Application.as_view()),
#"""———————————————————————————————————《吐槽》————————————————————————————————————————"""
	# 吐槽列表	发布吐槽
	path('spit/', views.Tabulation.as_view()),
	# 收藏
	path('spit/<int:id>/collect/', views.Collect.as_view()),
	# 点赞
	path('spit/<int:id>/updatethumbup/', views.Like.as_view()),
	# 吐槽详情
	path('spit/<int:id>/',views.Roast.as_view()),
	# 评论详情
	path('spit/<int:id>/children', views.Comment.as_view()),
]

